package com.lu.oss.api

import androidx.annotation.WorkerThread

/**
 * author: luqihua
 * date:2021/10/21
 * description:
 */
interface IOssService {
    @WorkerThread
    fun downloadFile(objectKey: String, downloadPath: String, listener: IOssObjectListener?)

    @WorkerThread
    fun uploadFile(objectKey: String, filePath: String, listener: IOssObjectListener?)

    @WorkerThread
    fun uploadData(objectKey: String, data: ByteArray, listener: IOssObjectListener?)

    fun stopTask(objectKey: String)
    fun release()
}